<?php 
include_once 'viper/autoloader.php';

class viper_client_globalaverage
{
	public static function getGlobalAverage(){
		$sql = 'SELECT * FROM globalaverage';
		$result = viper_dao::query($sql);
		
		if(!$result){
			die('Could not retreive Global Average');
		}
		
		return $result[0];
	}
}
?>